package com.beyond.trace.mapper.storage;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.beyond.trace.domain.TraceBase;
import com.beyond.trace.domain.storage.Order;
import com.beyond.trace.domain.storage.OrderVo;
import com.beyond.trace.requestVo.OrderQuery;
import com.beyond.trace.requestVo.StoreVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单主表信息Mapper接口
 * 
 * @author yao
 * @date 2022-03-02
 */
public interface OrderMapper extends BaseMapper<Order>
{
    /**
     * @descroption 通过订单id获取订单信息
     * @param id
     * @return
     */
    OrderVo getOrderById(@Param("id") String id,@Param("departId") String departId);

    /**
     * @descroption 查询订单信息
     * @param orderQuery
     * @return
     */
    List<Order> getOrderPage(OrderQuery orderQuery);

    /**
     * @descroption 获取产品的库存
     * @param productName
     * @return
     */
    List<StoreVo> getStorePage(@Param("productName") String productName,@Param("departId") String departId);


}
